<include file="Common/header" />
<link href="__PUBLIC__/highlight/default.min.css" rel="stylesheet"> 
<link href="__PUBLIC__/css/page/index.css?v=1.123456" rel="stylesheet">
<style>
 html body{
  margin-top: 0px;
 }
 #page_title{
  text-align: center;
 }
</style>
<h3 id="page_title"></h3>
<!-- 这里开始是内容 -->
<div id="page_md_content" ><textarea style="display:none;"></textarea></div>
<input type="hidden" id="page_id" value="{$page_id}"> 
<div id="page_html_content" style="display:none;"></div>

 <!--<include file="Common/footer" />-->
<script src="__PUBLIC__/js/common/jquery.min.js"></script>
<script src="__PUBLIC__/bootstrap/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/js/common/showdoc.js?v=1.1"></script>
<script src="__PUBLIC__/layer/layer.js"></script>
<script src="__PUBLIC__/js/dialog.js"></script>
<script src="__PUBLIC__/layui/layui.js"></script>

 <script src="__PUBLIC__/js/xss.min.js"></script>
 <script src="__PUBLIC__/highlight/highlight.min.js"></script>
 <script src="__PUBLIC__/editor.md/lib/marked.min.js"></script>
 <script src="__PUBLIC__/editor.md/lib/prettify.min.js"></script>
 <script src="__PUBLIC__/editor.md/lib/flowchart.min.js"></script>
 <script src="__PUBLIC__/editor.md/lib/raphael.min.js"></script>
 <script src="__PUBLIC__/editor.md/lib/underscore.min.js"></script>
 <script src="__PUBLIC__/editor.md/lib/sequence-diagram.min.js"></script>
 <script src="__PUBLIC__/editor.md/lib/jquery.flowchart.min.js"></script>
 <script src="__PUBLIC__/editor.md/editormd.js"></script>
 <script src="__PUBLIC__/js/page/index.js?a=abcedefgh12"></script>


<div style="display:none">
 {:C("STATS_CODE")}
</div>
<script>
    //注意：导航 依赖 element 模块，否则无法进行功能性操作
    layui.use('element', function () {
        var element = layui.element;
    });
    $(function () {
        var reg = new RegExp("(^|&)s=([^&]*)(&|$)");
        var r = window.location.search.substr(1).match(reg);
        var active=true;
        if (r != null) {
            var path = window.location.pathname + '?' + decodeURI(r[0]);
            $("ul#main-navbar li").each(function () {
                $(this).removeClass("layui-this");
                if(path == $(this).find("a").attr("href") ){
                    active=false;
                    $(this).addClass("layui-this");
                }
            });
        }
        if(active){
            $("ul#main-navbar li:first").addClass("layui-this");
        }

    });
</script>
